<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>多重变换</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .outer {
            width: 200px;
            height: 200px;
            border: 2px solid black;
            margin: 0 auto;
            margin-top: 100px;
            position: relative;
            transform-style: preserve-3d;
            perspective: 500px;
            perspective-origin: 102px 102px;

        }
        .inner {
            width: 200px;
            height: 200px;
            background-color: skyblue;
            transform-origin: right;
            /* 对于rotate来说,origin第二个 top,bottom都无影响 */
            transform: rotateY(0deg);
            /* 旋转时，看不到背部 */
            backface-visibility: hidden;
            /* 多重操作和2d一样，最好先偏移最后旋转 */

        }
</style>
</head>
<body>
<div class="outer">
    <div class="inner">
        你好啊
    </div>
</div>
</body>
</html>